package kuaishou

import (
	"net/http"
)

// 获取商品类目列表请求
type ItemCategoryRequest struct {
}

// 获取商品类目列表响应
type ItemCategoryResponse struct {
	BaseResponse
	Data struct {
		CategoryId   int    `json:"categoryId"`
		CategoryName string `json:"categoryName"`
		CategoryPid  int    `json:"categoryPid"`
	} `json:"data"`
}

func (r *ItemCategoryRequest) RequestMethod() string {
	return http.MethodGet
}

func (r *ItemCategoryRequest) RequestPath() string {
	return "/open/item/category"
}

func (r *ItemCategoryRequest) ApiName() string {
	return "open.item.category"
}
